package zj.service.modules.sign.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * 假期
 *
 * @author xi.yang
 * @create 2018-08-27 21:16
 **/
@Document(collection = "t_holiday")
public class Holiday implements Serializable {
    @Id
    private String id;
    private Date date;
    private String name;
    private Boolean free;

    public Holiday(Date date, String name, Boolean free) {
        this.date = date;
        this.name = name;
        this.free = free;
    }

    public Holiday() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Boolean getFree() {
        return free;
    }

    public void setFree(Boolean free) {
        this.free = free;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
